#version 130
// Attributs
in vec3 qt_Vertex ;
in vec2 qt_TexCoord0;
// Uniform
uniform mat4 ModelViewMatrix;
uniform mat4 ModelProjectionMatrix; 
mat4 ModelViewProjectionMatrix =   ModelProjectionMatrix *ModelViewMatrix;

// Sorties
out vec2 InterpolatedColor;
invariant gl_Position;

void main(void)
{
 //   if (qt_TexCoord0.y<0.2) {
 //       InterpolatedColor = vec4( 0.0f, 255.0f, 0.0f , 1.0) ;
 //  } else {
 //       InterpolatedColor = vec4( 255.0f, 0.0f, 0.0f , 1.0) ;
  //  }
    InterpolatedColor = qt_TexCoord0;
    gl_Position     =  ModelViewProjectionMatrix * vec4 (qt_Vertex, 1.0)  ;

}
